import Home from '../views/home'
import Login from '../views/login'
import Add from '../views/add'
import List from '../views/list'
import Work from '../views/work'
const  routeConfig = [
    {
      path:'/home',
      component:Home,
      children:[
        {
          path:'/home/work',
          component:Work

        },
        {
          path:'/home/list',
          component:List

        },
        {
          path:'/home/add',
          component:Add
        },
        {
          from:'/home',
          to:'/home/work'
        }
      ]
    },
    {
      path:'/login',
      component:Login
    },
    {
      from:'/',
      to:'/login'
    }
  ]

  export default routeConfig